#pragma once
#include "cocos2d.h"

using namespace cocos2d;

class CardSprite2 : public Sprite
{
	static Layer* CardsLayer;
	static Sprite* backSprite;
	static Sprite* selectedSprite;
	static Sprite* cardNotEnable;
	static bool touching;
	static bool showing;
		
public:
	CardSprite2();
	~CardSprite2();

	bool isSelected = false;
	bool selectble;
	int cardID;
	int spirteIndex;

	void setImage(int cIndex, int tIndex);
	static CardSprite2* Cards[5];
	static int selectedID;
	static void StartCards(Layer* parentLayer);
	static void RestoreCards();
	static void ShowCards(int cIndex, int* tIndexes, int tCount);
	static void HideCards();

	virtual void onEnter();
};

